import request from '@/utils/request'

// 查询采集器配置列表
export function listMasterConfig(query) {
  return request({
    url: '/iot/master/config/list',
    method: 'get',
    params: query
  })
}

// 查询采集器配置详细
export function getMasterConfig(masterId) {
  return request({
    url: '/iot/master/config/' + masterId,
    method: 'get'
  })
}

// 新增采集器配置
export function addMasterConfig(data) {
  return request({
    url: '/iot/master/config/add',
    method: 'post',
    data: data
  })
}

// 修改采集器配置
export function updateMasterConfig(data) {
  return request({
    url: '/iot/master/config/edit',
    method: 'put',
    data: data
  })
}

// 删除采集器配置
export function delMasterConfig(masterId) {
  return request({
    url: '/iot/master/config/' + masterId,
    method: 'delete'
  })
}